package com.trxy.hotelsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trxy.hotelsystem.dao.kaifanRecordMapper;
import com.trxy.hotelsystem.model.kaifanRecord;
import com.trxy.hotelsystem.service.KaifanRecordService;

@Service
public class KaifanRecordServiceImpl implements KaifanRecordService{
	
	@Autowired
	private kaifanRecordMapper kaifanrecordMapper;

	@Override
	public int insertSelective(kaifanRecord record) {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.insertSelective(record);
	}

	@Override
	public kaifanRecord selectkaifanRecordById(String id) {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updatekaifanRecordById(kaifanRecord record) {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<kaifanRecord> selectkaifanRecordByVipNumber(String vipNumber) {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.selectkaifanRecordByVipNumber(vipNumber);
	}

	@Override
	public List<kaifanRecord> queryKaifangRecordAll() {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.queryKaifangRecordAll();
	}

	@Override
	public List<kaifanRecord> selectKaifanRecord(kaifanRecord record) {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.selectKaifanRecord(record);
	}

	@Override
	public double sumKaifanRcordByVipnumber(String vipNumber) {
		// TODO Auto-generated method stub
		return kaifanrecordMapper.sumKaifanRcordByVipnumber(vipNumber);
	}
	
	

}
